home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Financial / Stopwatch2.3 / Source / InfoPanel.m < prev    next >
Text File  |  1995-06-12  |  537b  |  43 lines

  1. /*
  2.  * Info Panel support for Stopwatch app.
  3.  *
  4.  * For legal stuff see the file COPYRIGHT
  5.  */
  6. #import "InfoPanel.h"
  7.  
  8. #define    VERSION    "2.3"
  9.  
  10.  
  11. @implementation InfoPanel
  12.  
  13. static id Info;
  14.  
  15. + new
  16. {
  17.   if ( Info == nil ) {
  18.     Info = [[InfoPanel alloc] init];
  19.     [NXApp loadNibSection:"infoPanel.nib" owner:Info];
  20.   }
  21.   return Info;
  22. }
  23.  
  24. - awakeFromNib
  25. {
  26.   [versionField setStringValue:VERSION];
  27.   return self;
  28. }
  29.  
  30. - showInfo
  31. {
  32.   [panel orderFront:nil];
  33.   return self;
  34. }
  35.  
  36. - showLegal:sender
  37. {
  38.   [legalPanel orderFront:nil];
  39.   return self;
  40. }
  41.  
  42. @end
  43.